package com.shiikong_memory.yez.MySQLAPI.DaoImpl;

import com.shiikong_memory.yez.MySQLAPI.Dao.AccountDataMapper;
import com.shiikong_memory.yez.MySQLAPI.Dao.NoticeMapper;
import com.shiikong_memory.yez.MySQLAPI.JavaBean.AccountDataBean;
import com.shiikong_memory.yez.MySQLAPI.JavaBean.NoticeBean;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.Date;

@Service
public class AccountDataServer{
    @Resource
    private AccountDataMapper accountDataMapper;


    
    public AccountDataBean getByKookId(String KookId) {
        return accountDataMapper.getByKookId(KookId);
    }

    
    public boolean addAccountData(String KookId, String status, String chars, String skins, String assistChars, String charInfoMap, String updateTime) {
        return accountDataMapper.addAccountData(KookId,status,chars,skins,assistChars,charInfoMap,updateTime);
    }

    
    public boolean updateByKookId(String KookId, String status, String chars, String skins, String assistChars, String charInfoMap, String updateTime) {
        return accountDataMapper.updateByKookId(KookId,status,chars,skins,assistChars,charInfoMap,updateTime);
    }

    
    public boolean deleteByChatChannelId(String KookId) {
        return accountDataMapper.deleteByChatChannelId(KookId);
    }
}
